package com.itheima.oopadvanced.extendsconstructor;

/**
 * @author Anomaly
 * @date 2022/12/18 20:39
 */
public class Animal {
    public Animal() {
        System.out.println("Animal无参构造器");
    }

    public Animal(String name) {
        System.out.println("Animal有参构造器");
        System.out.println("name = " + name);
    }

}
